<!--自定义图标展示组件，通过图标名称展示图标-->
<script  lang="ts">
import * as iconUtils from "@/utils/IconUtils"
import {h} from "vue"
export default {
  props:{
    iconName:{type:String}
  },
  setup(props) {
    return () =>
        props.iconName ? h(iconUtils.getIcon( props.iconName )) : null;
  }
}
</script>
<style scoped>

</style>
